package cn.com.open.itembank.service;

import cn.com.open.itembank.entity.QuestionType;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * Created by lucky on 2017/12/14.
 */
@FeignClient(name = "item-base-service")
public interface QuestionTypeRemoteService {
    /**
     * 根据题型id获取题型信息.
     *
     * @param id 题型id
     * @return 题型信息
     */
    @GetMapping(value = "/questionType/{id}")
    QuestionType getQuestionType(@PathVariable(value = "id") String id);

}